<template>
  <el-scrollbar class="center-scrollbar">
    <component
      v-for="(col, index) in BiConfVueSecondList"
      :key="index"
      style="margin-top: 15px"
      :is="col.componentPath"
      :tableName="col.tableName"
    />
  </el-scrollbar>
</template>
<script>
import After from "@/views/conf/After/index.vue";
import {
  listBiConfVueSecond,
  getBiConfVueSecond,
  delBiConfVueSecond,
  addBiConfVueSecond,
  updateBiConfVueSecond,
} from "@/api/vue/BiConfVueSecond";
export default {
  name: "BiConfVueDwd",
  components: { After },
  data() {
    return {
      BiConfVueSecondList: [],
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
      },
    };
  },
  created() {
    if (this.$route.query.obj) {
      this.queryParams.vueFirstId = this.$route.query.obj.id;
    }
    this.getList();
  },
  methods: {
    /** 查询vue配置二级列表 */
    getList() {
      //   this.loading = true;
      listBiConfVueSecond(this.queryParams).then((response) => {
        this.BiConfVueSecondList = response.rows;
        // this.total = response.total;
        // this.loading = false;
      });
    },
  },
};
</script>